#ifndef __DETAILSVIEW_H_
#define __DETAILSVIEW_H_

#include "proeditor.h"

class DetailsView : public Qt4ProjectManager::Internal::ProEditor
{
    Q_OBJECT

    enum
	{
        CUT_ACTION      = 0,
        COPY_ACTION     = 1,
        PASTE_ACTION    = 2,
        UNDO_ACTION     = 3,
        REDO_ACTION     = 4
    };

public:
    DetailsView(QWidget *parent = 0);
    ~DetailsView();

    void initialize(Qt4ProjectManager::Internal::ProEditorModel *model, Qt4ProjectManager::Internal::ProItemInfoManager *infomanager);

    bool isActionEnabled(int id);
    void triggerAction(int id);

private Q_SLOTS:
    void actionChanged();
    void commandManagerChanged();

Q_SIGNALS:
    void actionChanged(int id);

private:
    QList<QAction *> m_actions;
};

#endif //__DETAILSVIEW_H_
